package com.yanqu.road.logic.bussiness.player;

import com.yanqu.road.entity.clinic.DepartmentData;
import com.yanqu.road.entity.clinic.DiseaseData;
import com.yanqu.road.entity.clinic.UserClinicData;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.Map;

/**
 * @author ：zfr
 * @date ：2021/3/12 14:22
 */
public class UserClinicBusiness {
    public static UserClinicData getUserClinicData(long userId) {
        return DaoHelper.getUserClinicDaoImpl().getUserClinicData(userId);
    }

    public static boolean addUserClinicData(UserClinicData data) {
        return DaoHelper.getUserClinicDaoImpl().add(data);
    }

    public static boolean updateUserClinicData(UserClinicData data) {
        return DaoHelper.getUserClinicDaoImpl().update(data);
    }

    public static Map<Integer, DepartmentData> getDepartmentDataMap(long userId) {
        return DaoHelper.getClinicDepartmentDaoImpl().getClinicDepartmentDataMap(userId);
    }

    public static boolean addDepartmentData(DepartmentData departmentData) {
        return DaoHelper.getClinicDepartmentDaoImpl().add(departmentData);
    }

    public static boolean updateDepartmentData(DepartmentData departmentData) {
        return DaoHelper.getClinicDepartmentDaoImpl().update(departmentData);
    }

    public static Map<Integer, DiseaseData> getDiseaseDataMap(long userId) {
        return DaoHelper.getClinicDiseaseDaoImpl().getDiseaseDataMap(userId);
    }

    public static boolean addDiseaseData(DiseaseData diseaseData) {
        return DaoHelper.getClinicDiseaseDaoImpl().add(diseaseData);
    }

    public static boolean updateDiseaseData(DiseaseData diseaseData) {
        return DaoHelper.getClinicDiseaseDaoImpl().update(diseaseData);
    }
}
